<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>公司登录</title>
<%@include file="/view/common/js-css.jsp" %>
</head>
<body>
	<!-- 登录失败后的页面显示 -->
	<c:if test="${!empty param.loginError }">
			<div class="alert alert-danger alert-dismissible fade in" role="alert" style="text-align: center;">
		       <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
		       <strong>用户名或密码错误！</strong>
			</div>
	</c:if>
	
	<c:if test="${!empty param.registerSuccess }">
			<div class="alert alert-success alert-dismissible fade in" role="alert" style="text-align: center;">
		       <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
		       <strong>注册成功，请登录！</strong>
			</div>
	</c:if>
	
	<center><h1>企业登录</h1></center>
	<hr>
	
	<form action="<%=request.getContextPath() %>/CompanyServlet?command=login" method="post">
		  <div class="form-group">
		    <input type="text" class="form-control" name="code" placeholder="登录…">
		  </div>
		  <div class="form-group">
		    <input type="password" class="form-control" name="password" placeholder="密码...">
		  </div>
		  <button type="submit" class="btn btn-primary">Submit</button>
	</form>
	
</body>
</html>